package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店商品做法管理信息对象 store_dish_recipe_management
 *
 * @author ruoyi
 * @date 2025-05-27
 */
public class StoreDishRecipeManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID，主键，自增唯一标识 */
    private Long id;

    /** 门店名称，例如“XX餐厅”“XX分店”等，不允许为空 */
    @Excel(name = "门店名称，例如“XX餐厅”“XX分店”等，不允许为空")
    private String storeName;

    /** 门店编号，业务唯一标识码（如系统编码），不允许为空且唯一 */
    @Excel(name = "门店编号，业务唯一标识码", readConverterExp = "如=系统编码")
    private String storeCode;

    /** 做法总数，统计该门店下所有商品做法的数量，默认为0 */
    @Excel(name = "做法总数，统计该门店下所有商品做法的数量，默认为0")
    private Long totalRecipeCount;

    /** 做法分类数，统计该门店下商品做法的分类数量，默认为0 */
    @Excel(name = "做法分类数，统计该门店下商品做法的分类数量，默认为0")
    private Long totalCategoryCount;

    /** 记录创建时间，默认为当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间，默认为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间，默认为当前时间，更新时自动刷新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间，默认为当前时间，更新时自动刷新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 状态标识，0=禁用，1=启用（默认启用），用于控制门店做法数据是否有效 */
    @Excel(name = "状态标识，0=禁用，1=启用", readConverterExp = "默=认启用")
    private Integer isActive;

    /** 最后同步时间，记录与门店系统数据同步的时间戳，允许为空 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后同步时间，记录与门店系统数据同步的时间戳，允许为空", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSyncTime;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setStoreName(String storeName)
    {
        this.storeName = storeName;
    }

    public String getStoreName()
    {
        return storeName;
    }

    public void setStoreCode(String storeCode)
    {
        this.storeCode = storeCode;
    }

    public String getStoreCode()
    {
        return storeCode;
    }

    public void setTotalRecipeCount(Long totalRecipeCount)
    {
        this.totalRecipeCount = totalRecipeCount;
    }

    public Long getTotalRecipeCount()
    {
        return totalRecipeCount;
    }

    public void setTotalCategoryCount(Long totalCategoryCount)
    {
        this.totalCategoryCount = totalCategoryCount;
    }

    public Long getTotalCategoryCount()
    {
        return totalCategoryCount;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setIsActive(Integer isActive)
    {
        this.isActive = isActive;
    }

    public Integer getIsActive()
    {
        return isActive;
    }

    public void setLastSyncTime(Date lastSyncTime)
    {
        this.lastSyncTime = lastSyncTime;
    }

    public Date getLastSyncTime()
    {
        return lastSyncTime;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("storeName", getStoreName())
                .append("storeCode", getStoreCode())
                .append("totalRecipeCount", getTotalRecipeCount())
                .append("totalCategoryCount", getTotalCategoryCount())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("remark", getRemark())
                .append("isActive", getIsActive())
                .append("lastSyncTime", getLastSyncTime())
                .append("phone", getPhone())
                .toString();
    }
}
